Form view definition¶
Overview¶
Next Design allows you to define a view that allows you to view and edit model details like a traditional design document by placing model fields on a form. You can place all the fields you want to view and edit in one form, or you can define multiple forms and place only the fields you need for your purposes.
In addition to fields that hold values, fields that hold related models (hereinafter referred to as related fields) can be placed on the form. Related fields placed on the form can be viewed and edited in a list format with a serial number or grid format.
When you have many fields on a form, you can group them together to create a semantic cohesiveness, or to have each group fold.
The following describes the method of defining a form view in the following order.
- Place existing field
- Place related models in list format
- Arrange related models in grid format
- Change the display format of related models
- Change field order
- Hide placed fields
- Group fields
Place existing field¶
Place existing field
To place an existing field defined on the entity on the form:
Operating procedure
- Click to select a field that has already been placed on the form to specify where the field will be placed.
- Do one of the following to open the New Control dialog.
- From the ribbon, click Form> Form> Add Exist Fields.
- Click Add Exiting Field from the context menu.
- In the New Control dialog, select the field you want to place from the Filelds choices.
- Next, select the UI format for editing from the [Form Element] selection.
- Click the [OK] button in the dialog to place the selected field on the form and display the field name as the title.
If the form does not have any fields, do the following:
Other operating procedures
- Click the model name at the top of the form to select it.
- Click Profile> Form> Add Exist Fields on the ribbon to open the New Control dialog.
- Select and place the fields as in the previous steps.
Change the display format of placed fields
To make the form compact by changing the title display direction of the field placed on the form to the left, follow the steps below.
Operating procedure
- To change the orientation of the title, do one of the following:
- From the ribbon, click Form> Title> Title Orientation and select Left.
- On the Form Element tab of the Inspector, select Title> Label Orientation> Left.
To change the fields placed on the form into a two-column table with titles and values, follow the steps below.
Operating procedure
- Change the title display direction to left as in the previous procedure.
- In the Form Element tab of the Inspector, check the Title> Label Orientation> Surround an element with a line. check box.
Place related models in list format¶
Place related model in list format
To place the model associated with an entity in a list with a sequential number on the form:
Operating procedure
- As with Place Existing Field, click the field already placed on the form to select where to place the associated model.
- Do one of the following to open the New Control dialog.
- From the ribbon, click Form> Form> Add Exist Fields.
- Click Add Exiting Field from the context menu.
- In the New Control dialog, select the field holding the associated model from the Filelds choice.
- Continuing, select List from the Form Element choices.
- Click the [OK] button in the dialog, the name of the selected field will be displayed as a title, and the related models will be placed with serial numbers under it.
Place existing field of related model
For each related model displayed in the list format, to add additional existing fields defined in that related model, follow the procedure below, similar to "Place existing field" above. ..
Operating procedure
- Click the field of the related model where the field is to be placed or the displayed related model, and specify the placement position.
- Do one of the following to open the New Control dialog.
- From the ribbon, click Form> Form> Add Exist Fields.
- Click Add Exiting Field from the context menu.
- After that, the existing field of the related model is placed on the form by the same operation procedure as "Place existing field".
Layout related model hierarchically
From the related models displayed in the list format, to follow the relationships between the models and arrange the related models hierarchically, perform the following steps as described in "Place related models on form" above. I will.
Operating procedure
- To specify the placement position, click the relevant model already placed on the form or click its field to select it.
- Do one of the following to open the New Control dialog.
- From the ribbon, click Form> Form> Add Exist Fields.
- Click Add Exiting Field from the context menu.
- After that, by the same operation procedure as "Place related model on form", the model related to the related model already placed on the form is placed under the related model with a serial number.
Arrange related models in grid format¶
Place related model in grid format
To place the model associated with an entity on a form in a grid format, do the following:
Operating procedure
- In the same way as "Place related model in list form", click and select the field already placed on the form to specify the placement position of the related model.
- Do one of the following to open the New Control dialog.
- From the ribbon, click Form> Form> Add Exist Fields.
- Click Add Exiting Field from the context menu.
- In the New Control dialog, select the field holding the associated model from the Filelds choice.
- Continuing, select Grid from the Form Element choices.
- Click the [OK] button in the dialog and the name of the selected field will be displayed as a title, and the related models will be placed in a grid under it.
Change the display column of the grid
To change the visible columns of a grid placed on a form, do the following:
Operating procedure
- Do one of the following to open the Add New Column dialog.
- Select any cell on the grid and click Form> Grid> Add Exist Field Column from the ribbon.
- Right-click the header row of the grid and click Add Column with Existing Field from the context menu.
- In the Add New Column dialog, select the field you want to add as a column from the Filelds choices, and select the UI format when editing from the Form Element choices.
- Click the [OK] button in the dialog to add the selected field to the right edge of the grid column.
- To change the order of the grid columns, do one of the following:
- Select any cell in the column you want to move, and click Form> Grid> Move Column Left> Move Column Right from the ribbon.
- Move the column position by dragging and dropping the column heading of the grid.
- To remove columns from the grid and hide them, do one of the following:
- Select any cell in the column you want to delete and from the ribbon click Form> Grid> Delete Column.
- Right-click the column heading in the grid and click Delete from the context menu.
Note
- To change the column structure of the grid, at least one related model must exist.
- If the related model is empty, add a temporary model and then change the column structure.
Change the default column width
To change the default column width for each column of the grid placed on the form, or to reset the temporarily changed column width to the default value:
Operating procedure
- Select any cell in the grid column for which you want to change the default column width.
- Drag and drop the grid column heading borders to adjust the column width, then click Form> Grid> Set Default Column Width from the ribbon.
- Click to save the column width in the view definition and display it with the default column width when you reopen the project.
- To temporarily change the column width and then restore the default column width, select one of the cells in the grid column for which you want to restore the column width and from the ribbon select Form> Grid> Reset Column. Click Width.
Note
- The right column of the grid grows and shrinks according to the width of the editor view, so you cannot change the default column width.
Change the display format of the related model¶
Change the display format of related model
To change the display format of the related model placed on the form:
Operating procedure
- Click to select the related model whose display format you want to change.
- From the ribbon, click Form> Control> Kind and select Grid or List.
Change field order¶
Change field order
To change the order of the fields that are placed on the form, do the following:
Operating procedure
- Click to select the title of the field whose order you want to change.
- Click Form> Place> Move Up, Move Down from the ribbon to swap the order.
Note
- The order of related models displayed with serial numbers can be changed by selecting the model and dragging and dropping.
Hide placed fields¶
Hide placed fields
To remove a field that has been placed on the form and hide it from the form, follow these steps:
Operating procedure
- Click the field located on the form to select it.
- Do one of the following:
- Click Form> Form> Delete from the ribbon.
- Click Hide this Field from the context menu.
Group fields¶
Group fields
To title and group multiple fields located on a form, do the following:
Operating procedure
- Hold down the Ctrl key and select the fields you want to group by clicking them.
- From the ribbon, click Form> Group> Grouping.
- In the [Grouping] dialog, enter the [Display Name] and [Group Name] and click the [OK] button.
- The group title is added to the form and the selected fields are listed under the group. Click the left edge of the group title to fold or expand each group.
Note
- To group multiple fields, they must be adjacent.
- If they are not adjacent, reorder them so that they are adjacent, as described in "Reordering Fields" above.